<?php
return array(
    'debug' => false,
    'COOKIE_PREFIX'    =>  'sswx_', // cookie 名称前缀
    'COOKIE_EXPIRE'    =>  86400, // cookie 保存时间
    'COOKIE_PATH'      =>  '/', // cookie 保存路径
    'COOKIE_DOMAIN'    =>  '', // cookie 有效域名
    'COOKIE_SECURE'    =>  '', //  cookie 启用安全传输
    'COOKIE_HTTPONLY'  =>  '', // httponly设置

    'db_config_dev' => array(
        'db_name' => 'db_snake_wx_170718',
        'db_user' => 'root',
        'db_pass' => '',
        'db_host' => 'localhost'
    ),

    'db_config' => array(
        'db_name' => 'db_share_service',
        'db_user' => 'db_share_service',
        'db_pass' => 'db_share_service',
        'db_host' => 'localhost'
    ),

    'wechat_config' => array(
        'debug'  => true,
        'appid' => 'wx22b8f590b0cbc2e32',
        'appsecret'=>'dace6f7e7d12d825fbcdc6278c5dcef53',
        'encodingaeskey'=>'EwKK4ZRKYE1Vt1dwJykuYWlV8t4W8WK6kepwfJrW8Rk8',
        'token'  => 'kL4LD22L8VuuM7YtDR73T9t9yMvn7YVo1',
        'scope' => 'snsapi_base' // 'snsapi_base' 'snsapi_userinfo'
    ),
    'libs' => array('db/mysql', 'Service', 'wechat', 'wechatOAuth', 'errCode', 'UtilHelper', 'QR'),

    'view_files' => array(
        'zepto' => array(
            'import' => array(), // 依赖的前置应用
            'js' => STATIC_LIB_URL.'/zepto.min.js'
        ),
        'pure' => array(
            'import' => array(),
            'js' => array(),
            'css' => array(
                STATIC_LIB_URL.'/pure.all.css'
            )
        ),
        'animateCSS' => array(
            'import' => array(),
            'js' => array(),
            'css' => array(
                STATIC_LIB_URL.'/animate.min.css'
            )
        ),
        'swiper' => array(
            'import' => array('zepto','animateCSS'),
            'js' => array(
                STATIC_LIB_URL.'/swiper/swiper-3.4.2.jquery.min.js',
                STATIC_LIB_URL.'/swiper/swiper.animate1.0.2.min.js',
            ),
            'css' => array(
                STATIC_LIB_URL.'/swiper/swiper-3.4.2.min.css'
            )
        ),
        'weixin' => array(
            'import' => array('zepto'),
            'js' => array(
                'http://res.wx.qq.com/open/js/jweixin-1.0.0.js'
            )
        ),
        'wcss' => array(
            'css' => STATIC_LIB_URL ."/simo.wcss.css"
        ),
        // 定制化
        'app' => array(
            'import' => array('zepto', 'weixin', 'pure', 'animateCSS'),
            'css' => array(
                STATIC_FILE_URL."/css/app.css"
            )
        )
    ),

    'DEFAULT_ACTION' => 'index',
    'PAGE_TITLE' => '共享服务平台',
    'PAGE_DESCRIPTION' => '',
);
?>
